package com.ourteam.education.dao;
/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2019-09-22 15:15:05
  * Warning ! This file will be overwrite when regenerate !
  * 
 */
import org.apache.commons.lang.StringUtils;
public class CoursePrice implements java.io.Serializable {
    
    public CoursePrice() {
		super();
	}
	
		
		
		
		
		
	private long id;	
	
	/**
	 * Attribute id Be Seted Falg
	 */
	private boolean idSetted = false;
	
		/**
	 * Attribute id is Null Falg
	 */
	private boolean idNull = false;
	
	   
    /**
	 * Get id
	 * 
	 * @return long
	 */
	final public long getId(){
	    
				
		return id;
				
	}
	
	/**
	 * Set id
	 * 
	 * @param long
	 */
	final public void setId(long id ){
		
				
		this.id = id;
				
		this.idSetted = true;
		
				
				
		this.setIdNull(false);
				
				
	}
	
	/**
	 * Get id Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isIdSetted(){
		return this.idSetted;
	}
	
		
	/**
	 * Set id Null
	 * 
	 */
	final public void setIdNull(){
			
		this.idNull = true;
		
	}	
	
	final public void setIdNull(boolean aNullFlag){
			
		this.idNull = aNullFlag;
		
	}	
	
	final public boolean isIdNull(){
			
		return this.idNull;
		
	}
	
    	
	   
		
		
		
	private long courseDefineId;	
	
	/**
	 * Attribute courseDefineId Be Seted Falg
	 */
	private boolean courseDefineIdSetted = false;
	
		/**
	 * Attribute courseDefineId is Null Falg
	 */
	private boolean courseDefineIdNull = false;
	
	   
    /**
	 * Get courseDefineId
	 * 
	 * @return long
	 */
	final public long getCourseDefineId(){
	    
				
		return courseDefineId;
				
	}
	
	/**
	 * Set courseDefineId
	 * 
	 * @param long
	 */
	final public void setCourseDefineId(long courseDefineId ){
		
				
		this.courseDefineId = courseDefineId;
				
		this.courseDefineIdSetted = true;
		
				
				
		this.setCourseDefineIdNull(false);
				
				
	}
	
	/**
	 * Get courseDefineId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCourseDefineIdSetted(){
		return this.courseDefineIdSetted;
	}
	
		
	/**
	 * Set courseDefineId Null
	 * 
	 */
	final public void setCourseDefineIdNull(){
			
		this.courseDefineIdNull = true;
		
	}	
	
	final public void setCourseDefineIdNull(boolean aNullFlag){
			
		this.courseDefineIdNull = aNullFlag;
		
	}	
	
	final public boolean isCourseDefineIdNull(){
			
		return this.courseDefineIdNull;
		
	}
	
    	
	   
		
		
		
	private long campusId;	
	
	/**
	 * Attribute campusId Be Seted Falg
	 */
	private boolean campusIdSetted = false;
	
		/**
	 * Attribute campusId is Null Falg
	 */
	private boolean campusIdNull = false;
	
	   
    /**
	 * Get campusId
	 * 
	 * @return long
	 */
	final public long getCampusId(){
	    
				
		return campusId;
				
	}
	
	/**
	 * Set campusId
	 * 
	 * @param long
	 */
	final public void setCampusId(long campusId ){
		
				
		this.campusId = campusId;
				
		this.campusIdSetted = true;
		
				
				
		this.setCampusIdNull(false);
				
				
	}
	
	/**
	 * Get campusId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCampusIdSetted(){
		return this.campusIdSetted;
	}
	
		
	/**
	 * Set campusId Null
	 * 
	 */
	final public void setCampusIdNull(){
			
		this.campusIdNull = true;
		
	}	
	
	final public void setCampusIdNull(boolean aNullFlag){
			
		this.campusIdNull = aNullFlag;
		
	}	
	
	final public boolean isCampusIdNull(){
			
		return this.campusIdNull;
		
	}
	
    	
	   
		
		
		
	private double price;	
	
	/**
	 * Attribute price Be Seted Falg
	 */
	private boolean priceSetted = false;
	
		/**
	 * Attribute price is Null Falg
	 */
	private boolean priceNull = false;
	
	   
    /**
	 * Get price
	 * 
	 * @return double
	 */
	final public double getPrice(){
	    
				
		return price;
				
	}
	
	/**
	 * Set price
	 * 
	 * @param double
	 */
	final public void setPrice(double price ){
		
				
		this.price = price;
				
		this.priceSetted = true;
		
				
				
		this.setPriceNull(false);
				
				
	}
	
	/**
	 * Get price Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isPriceSetted(){
		return this.priceSetted;
	}
	
		
	/**
	 * Set price Null
	 * 
	 */
	final public void setPriceNull(){
			
		this.priceNull = true;
		
	}	
	
	final public void setPriceNull(boolean aNullFlag){
			
		this.priceNull = aNullFlag;
		
	}	
	
	final public boolean isPriceNull(){
			
		return this.priceNull;
		
	}
	
    	
	   
		
		
		
	private String priceUnit;	
	
	/**
	 * Attribute priceUnit Be Seted Falg
	 */
	private boolean priceUnitSetted = false;
	
		/**
	 * Attribute priceUnit is Null Falg
	 */
	private boolean priceUnitNull = false;
	
	   
    /**
	 * Get priceUnit
	 * 
	 * @return String
	 */
	final public String getPriceUnit(){
	    
				
		if(isPriceUnitNull()){
			return null;
		}
		else{
			return StringUtils.trim(priceUnit);
		}
				
	}
	
	/**
	 * Set priceUnit
	 * 
	 * @param String
	 */
	final public void setPriceUnit(String priceUnit ){
		
				
		this.priceUnit = StringUtils.trim(priceUnit);
				
		this.priceUnitSetted = true;
		
				
				
		this.setPriceUnitNull(this.priceUnit == null);
				
				
	}
	
	/**
	 * Get priceUnit Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isPriceUnitSetted(){
		return this.priceUnitSetted;
	}
	
		
	/**
	 * Set priceUnit Null
	 * 
	 */
	final public void setPriceUnitNull(){
			
		this.priceUnitNull = true;
		
	}	
	
	final public void setPriceUnitNull(boolean aNullFlag){
			
		this.priceUnitNull = aNullFlag;
		
	}	
	
	final public boolean isPriceUnitNull(){
			
		return this.priceUnitNull;
		
	}
	
    	
	   
		
		
		
	private String status;	
	
	/**
	 * Attribute status Be Seted Falg
	 */
	private boolean statusSetted = false;
	
		/**
	 * Attribute status is Null Falg
	 */
	private boolean statusNull = false;
	
	   
    /**
	 * Get status
	 * 
	 * @return String
	 */
	final public String getStatus(){
	    
				
		if(isStatusNull()){
			return null;
		}
		else{
			return StringUtils.trim(status);
		}
				
	}
	
	/**
	 * Set status
	 * 
	 * @param String
	 */
	final public void setStatus(String status ){
		
				
		this.status = StringUtils.trim(status);
				
		this.statusSetted = true;
		
				
				
		this.setStatusNull(this.status == null);
				
				
	}
	
	/**
	 * Get status Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isStatusSetted(){
		return this.statusSetted;
	}
	
		
	/**
	 * Set status Null
	 * 
	 */
	final public void setStatusNull(){
			
		this.statusNull = true;
		
	}	
	
	final public void setStatusNull(boolean aNullFlag){
			
		this.statusNull = aNullFlag;
		
	}	
	
	final public boolean isStatusNull(){
			
		return this.statusNull;
		
	}
	
    	
	   
		
		
		
	private String remarks;	
	
	/**
	 * Attribute remarks Be Seted Falg
	 */
	private boolean remarksSetted = false;
	
		/**
	 * Attribute remarks is Null Falg
	 */
	private boolean remarksNull = false;
	
	   
    /**
	 * Get remarks
	 * 
	 * @return String
	 */
	final public String getRemarks(){
	    
				
		if(isRemarksNull()){
			return null;
		}
		else{
			return StringUtils.trim(remarks);
		}
				
	}
	
	/**
	 * Set remarks
	 * 
	 * @param String
	 */
	final public void setRemarks(String remarks ){
		
				
		this.remarks = StringUtils.trim(remarks);
				
		this.remarksSetted = true;
		
				
				
		this.setRemarksNull(this.remarks == null);
				
				
	}
	
	/**
	 * Get remarks Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isRemarksSetted(){
		return this.remarksSetted;
	}
	
		
	/**
	 * Set remarks Null
	 * 
	 */
	final public void setRemarksNull(){
			
		this.remarksNull = true;
		
	}	
	
	final public void setRemarksNull(boolean aNullFlag){
			
		this.remarksNull = aNullFlag;
		
	}	
	
	final public boolean isRemarksNull(){
			
		return this.remarksNull;
		
	}
	
    	
	   
		
		
		
	private int deleteFlag;	
	
	/**
	 * Attribute deleteFlag Be Seted Falg
	 */
	private boolean deleteFlagSetted = false;
	
		/**
	 * Attribute deleteFlag is Null Falg
	 */
	private boolean deleteFlagNull = false;
	
	   
    /**
	 * Get deleteFlag
	 * 
	 * @return int
	 */
	final public int getDeleteFlag(){
	    
				
		return deleteFlag;
				
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @param int
	 */
	final public void setDeleteFlag(int deleteFlag ){
		
				
		this.deleteFlag = deleteFlag;
				
		this.deleteFlagSetted = true;
		
				
				
		this.setDeleteFlagNull(false);
				
				
	}
	
	/**
	 * Get deleteFlag Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isDeleteFlagSetted(){
		return this.deleteFlagSetted;
	}
	
		
	/**
	 * Set deleteFlag Null
	 * 
	 */
	final public void setDeleteFlagNull(){
			
		this.deleteFlagNull = true;
		
	}	
	
	final public void setDeleteFlagNull(boolean aNullFlag){
			
		this.deleteFlagNull = aNullFlag;
		
	}	
	
	final public boolean isDeleteFlagNull(){
			
		return this.deleteFlagNull;
		
	}
	
    	
	   
		
		
		
	private long ammount;	
	
	/**
	 * Attribute ammount Be Seted Falg
	 */
	private boolean ammountSetted = false;
	
		/**
	 * Attribute ammount is Null Falg
	 */
	private boolean ammountNull = false;
	
	   
    /**
	 * Get ammount
	 * 
	 * @return long
	 */
	final public long getAmmount(){
	    
				
		return ammount;
				
	}
	
	/**
	 * Set ammount
	 * 
	 * @param long
	 */
	final public void setAmmount(long ammount ){
		
				
		this.ammount = ammount;
				
		this.ammountSetted = true;
		
				
				
		this.setAmmountNull(false);
				
				
	}
	
	/**
	 * Get ammount Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isAmmountSetted(){
		return this.ammountSetted;
	}
	
		
	/**
	 * Set ammount Null
	 * 
	 */
	final public void setAmmountNull(){
			
		this.ammountNull = true;
		
	}	
	
	final public void setAmmountNull(boolean aNullFlag){
			
		this.ammountNull = aNullFlag;
		
	}	
	
	final public boolean isAmmountNull(){
			
		return this.ammountNull;
		
	}
	
    	
	   
		
		
		
	private String chargingMode;	
	
	/**
	 * Attribute chargingMode Be Seted Falg
	 */
	private boolean chargingModeSetted = false;
	
		/**
	 * Attribute chargingMode is Null Falg
	 */
	private boolean chargingModeNull = false;
	
	   
    /**
	 * Get chargingMode
	 * 
	 * @return String
	 */
	final public String getChargingMode(){
	    
				
		if(isChargingModeNull()){
			return null;
		}
		else{
			return StringUtils.trim(chargingMode);
		}
				
	}
	
	/**
	 * Set chargingMode
	 * 
	 * @param String
	 */
	final public void setChargingMode(String chargingMode ){
		
				
		this.chargingMode = StringUtils.trim(chargingMode);
				
		this.chargingModeSetted = true;
		
				
				
		this.setChargingModeNull(this.chargingMode == null);
				
				
	}
	
	/**
	 * Get chargingMode Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isChargingModeSetted(){
		return this.chargingModeSetted;
	}
	
		
	/**
	 * Set chargingMode Null
	 * 
	 */
	final public void setChargingModeNull(){
			
		this.chargingModeNull = true;
		
	}	
	
	final public void setChargingModeNull(boolean aNullFlag){
			
		this.chargingModeNull = aNullFlag;
		
	}	
	
	final public boolean isChargingModeNull(){
			
		return this.chargingModeNull;
		
	}
	
    	
	   
		
						
		
	private String courseName;	
	
	/**
	 * Attribute courseName Be Seted Falg
	 */
	private boolean courseNameSetted = false;
	
		/**
	 * Attribute courseName is Null Falg
	 */
	private boolean courseNameNull = false;
	
	   
    /**
	 * Get courseName
	 * 课程名称
	 * @return String
	 */
	final public String getCourseName(){
	    
				
		if(isCourseNameNull()){
			return null;
		}
		else{
			return StringUtils.trim(courseName);
		}
				
	}
	
	/**
	 * Set courseName
	 * 课程名称
	 * @param String
	 */
	final public void setCourseName(String courseName ){
		
				
		this.courseName = StringUtils.trim(courseName);
				
		this.courseNameSetted = true;
		
				
				
		this.setCourseNameNull(this.courseName == null);
				
				
	}
	
	/**
	 * Get courseName Has Been Setted
	 * 课程名称
	 * @return boolean
	 */
	final public boolean isCourseNameSetted(){
		return this.courseNameSetted;
	}
	
		
	/**
	 * Set courseName Null
	 * 课程名称
	 */
	final public void setCourseNameNull(){
			
		this.courseNameNull = true;
		
	}	
	
	final public void setCourseNameNull(boolean aNullFlag){
			
		this.courseNameNull = aNullFlag;
		
	}	
	
	final public boolean isCourseNameNull(){
			
		return this.courseNameNull;
		
	}
	
    	
		
								
		
	private String campusName;	
	
	/**
	 * Attribute campusName Be Seted Falg
	 */
	private boolean campusNameSetted = false;
	
		/**
	 * Attribute campusName is Null Falg
	 */
	private boolean campusNameNull = false;
	
	   
    /**
	 * Get campusName
	 * 校区名称
	 * @return String
	 */
	final public String getCampusName(){
	    
				
		if(isCampusNameNull()){
			return null;
		}
		else{
			return StringUtils.trim(campusName);
		}
				
	}
	
	/**
	 * Set campusName
	 * 校区名称
	 * @param String
	 */
	final public void setCampusName(String campusName ){
		
				
		this.campusName = StringUtils.trim(campusName);
				
		this.campusNameSetted = true;
		
				
				
		this.setCampusNameNull(this.campusName == null);
				
				
	}
	
	/**
	 * Get campusName Has Been Setted
	 * 校区名称
	 * @return boolean
	 */
	final public boolean isCampusNameSetted(){
		return this.campusNameSetted;
	}
	
		
	/**
	 * Set campusName Null
	 * 校区名称
	 */
	final public void setCampusNameNull(){
			
		this.campusNameNull = true;
		
	}	
	
	final public void setCampusNameNull(boolean aNullFlag){
			
		this.campusNameNull = aNullFlag;
		
	}	
	
	final public boolean isCampusNameNull(){
			
		return this.campusNameNull;
		
	}
	
    	
		
				
		
		
	
	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
				
				
		result = prime * result + (int) (getId() ^ (getId() >>> 32));
						
		return result;
	}
	
	public boolean equals(Object obj) {
	
		if (obj == null){
			return false;
		}
		if ((obj instanceof CoursePrice) == false){
			return false;
		}
		CoursePrice other = (CoursePrice) obj;
		
				
				
		if (getId() != other.getId()){
			return false;
		}
						
		return true;
	
	}	
	
	public String toString(){
	    
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("[");
		
		        
		buffer.append("id=");
		buffer.append(this.id);
		        
		buffer.append("courseDefineId=");
		buffer.append(this.courseDefineId);
		        
		buffer.append("campusId=");
		buffer.append(this.campusId);
		        
		buffer.append("price=");
		buffer.append(this.price);
		        
		buffer.append("priceUnit=");
		buffer.append(this.priceUnit);
		        
		buffer.append("status=");
		buffer.append(this.status);
		        
		buffer.append("remarks=");
		buffer.append(this.remarks);
		        
		buffer.append("courseName=");
		buffer.append(this.courseName);
		        
		buffer.append("campusName=");
		buffer.append(this.campusName);
		        
		buffer.append("deleteFlag=");
		buffer.append(this.deleteFlag);
		        
		buffer.append("ammount=");
		buffer.append(this.ammount);
		        
		buffer.append("chargingMode=");
		buffer.append(this.chargingMode);
				
		buffer.append("]");
		
		return buffer.toString();
	}
	
	
}